package com.reading.common.persistence.view;

import com.reading.common.entity.view.User;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface UserMapper {
    int insert(User record);

    int update(User record);

    User selectByUserId(@Param("userId") Integer userId);

    User selectByEmail(@Param("email") String email);

    List<User> selectUsers(User user);
}